<template>
    <view class="img-test">
		<view class="title1">
			图片上传
		</view>
		<view class="content">
			<uploader-image
				:ossPathPrefix="'test/yzom_img/APPLET/task_dtl/'"
				:photoList="phototList"
				:isUploaderOss="true"
				:maxCount="1"
				:ref="oploaderOss"
				:upload-icon="'photograph'"
				@uploadSuccess="uploadImageSuccess"
			/>
		</view>
        
    </view>
</template>

<script>
import UploaderImage from '@/common/UploaderImage/UploaderImage';

export default {
    components: { UploaderImage },
    data() {
        return {
            phototList: [],
            vidoeList: []
        };
    },
    onLoad() {
    },
    methods: {
        // 图片上传成功返回
        uploadImageSuccess(fileList) {
            console.log('fileList----', fileList);
            this.phototList = fileList;
        },
    }
};
</script>

<style scoped lang="less">
    .img-test{
        padding:15rpx;
		// background-color: #fff;
			
		.title1 {
			width: 100%;
			font-size: 30rpx;
			color: #fff;
			margin-bottom: 10rpx;
		}
    }
</style>
